package cn.bdqn.repository;

import cn.bdqn.pojo.Worklog;
import cn.bdqn.vo.UserWorkLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface Asecu_UserWorkLogRepository extends JpaRepository<Worklog,Integer> {

    @Query("select new cn.bdqn.vo.UserWorkLog(u,w) from  User u,Worklog w where u.id = w.userId")
    List<UserWorkLog> findWork();
}
